<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <link rel="stylesheet" href="/css/layui.css">
</head>
<body>

<!-- 成功消息提示 -->
<div th:if="${successMessage}" class="layui-card">
    <div class="layui-card-header layui-bg-green">
        <i class="layui-icon">&#x1005;</i> 操作成功
    </div>
    <div class="layui-card-body">
        <span th:text="${successMessage}"></span>
    </div>
</div>

<!-- 页面其他内容 -->
<h2>我的任务列表</h2>
<!-- ... -->

<script src="/layui.js"></script>
<script>
    // 使用Layui的提示框（可选）
    layui.use('layer', function(){
        var layer = layui.layer;

        // 如果有成功消息，显示弹窗
        var successMessage = /*[[${successMessage}]]*/ null;
        if(successMessage) {
            layer.msg(successMessage, {icon: 1, time: 2000});
        }
    });
</script>
</body>
</html>